<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class Databasemigrations {

    public function create_table($name, $fields = array() ){
	
		$ci =& get_instance();
		$ci->load->database();
		$ci->load->dbforge();
		$ci->dbforge->add_field('id');
		$ci->dbforge->add_field($fields);
		$ci->dbforge->create_table($name);
    }
	
	public function drop_table($name){
		$ci =& get_instance();
		$ci->load->dbforge();
		$ci->dbforge->drop_table($name);
	}
	
	public function add_column($table, $column, $type){
	
	}
	
	public function remove_column($table, $column){
	
	}
	
	
}

/* End of file Databasemigrations.php */